package android.pot.com.smartcar.guidepage.activity;

import android.content.Context;
import android.pot.com.smartcar.base.BaseFragment;
import android.support.v4.app.Fragment;
import android.support.v4.app.FragmentManager;
import android.support.v4.app.FragmentPagerAdapter;

import java.util.List;

public class GuidePageAdapter extends FragmentPagerAdapter {
	
	private List<BaseFragment> list;
//	private Context context;

	public GuidePageAdapter(FragmentManager fm, List<BaseFragment> list,
							Context context) {
		super(fm);
		
		this.list=list;
//		this.context=context;
		
	}

	@Override
	public Fragment getItem(int pos) {
		return list.get(pos);
	}

	@Override
	public int getCount() {
		return list.size();
	}

}
